package observer_pattern.v2;

/**
 * NBA观察者类
 * @author ricejson
 */
public class NBAObserver extends Observer {
    public NBAObserver(String name, Subject subject) {
        super(name, subject);
    }

    @Override
    public void update() {
        System.out.println(subject.getSubjectState() + "," + this.name + "关闭NBA直播，继续工作！");
    }
}
